//
//  NSArray+Log.m
//  WSQOCTools
//
//  Created by 翁胜琼 on 2019/1/21.
//  Copyright © 2019 Dev John. All rights reserved.
//

#import "NSArray+Log.h"

@implementation NSArray (Log)

/**
 * 方法描述：数组中的Unicode转化中文
 *
 * @return 返回一个NSString类型的str
 *
 */
- (NSString *)descriptionWithLocale:(id)locale
{
    //开头有(
    NSMutableString *str = [NSMutableString stringWithString:@"[\n"];
    
    //block遍历所有元素
    [self enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop)
     {
         [str appendFormat:@"\t%@,\n", obj];
     }];
    
    //开头有)
    [str appendString:@"]"];
    
    return str;
}
@end
